import request from '@/utils/request'

// 查询未月结的数据
export function getSalaryMonthEndPage(query) {
  return request({
    url: '/thirteenSalaryEndController/getSalaryMonthEndPage',
    method: 'get',
    params: query
  })
}

// 查询月结的数据
export function getSalaryMonthHistoryPage(query) {
  return request({
    url: '/thirteenSalaryEndController/getSalaryMonthHistoryPage',
    method: 'get',
    params: query
  })
}

// 月结
export function saveMonthEnd(data) {
  return request({
    url: '/thirteenSalaryEndController/saveMonthEnd',
    method: 'post',
    data
  })
}
export function getPaymentPercent(query) {
  return request({
    url: '/thirteenSalaryEndController/getPaymentPercent',
    method: 'get',
    params: query
  })
}

// 撤销月结前校验
export function checkRevokeMonthEnd(data) {
  return request({
    url: '/thirteenSalaryEndController/checkRevokeMonthEnd',
    method: 'post',
    params: data
  })
}

// 撤销月结
export function revokeMonthEnd(data) {
  return request({
    url: '/thirteenSalaryEndController/revokeMonthEnd',
    method: 'post',
    data
  })
}


